﻿using System.Data;
using ECM7.Migrator.Framework;

namespace music.domain.Migrations
{
	[Migration(4)]
	public class Migration004_Users : Migration
	{
		public override void Apply()
		{
			Database.AddTable("User",
				new Column("Id", DbType.Guid, ColumnProperty.PrimaryKey, "newid()"),
				new Column("Login", DbType.String.WithSize(200)));
		}

		public override void Revert()
		{
			Database.RemoveTable("User");
		}
	}
}